package ReadWriteXML;
import java.util.ArrayList;


public class CUsingQuestionList {
	private String _title;
	private int _time;
	private String _timeBegin;
	private ArrayList<CQuestion> _questionList;
	private int _idDetailLearning;
	private int _idPart;
	private int _status;
	//contructor
	public CUsingQuestionList()
	{
		set_title("");
		set_time(0);
		_questionList = new ArrayList<CQuestion>();
	}
	
	public CUsingQuestionList(ArrayList<CQuestion> qList, String title, int time)
	{
		set_time(time);
		set_title(title);
		set_questionList(qList);
	}

	
	//properties
	public void set_title(String _title) {
		this._title = _title;
	}

	public String get_title() {
		return _title;
	}

	public void set_time(int _time) {
		this._time = _time;
	}

	public int get_time() {
		return _time;
	}

	public void set_questionList(ArrayList<CQuestion> _questionList) {
		this._questionList = _questionList;
	}

	public ArrayList<CQuestion> get_questionList() {
		return _questionList;
	}
	
	public void addQuestion(CQuestion ques)
	{
		_questionList.add(ques);
		
	}

	public void set_idDetailLearning(int _idDetailLearning) {
		this._idDetailLearning = _idDetailLearning;
	}

	public int get_idDetailLearning() {
		return _idDetailLearning;
	}

	public void set_idPart(int _idPart) {
		this._idPart = _idPart;
	}

	public int get_idPart() {
		return _idPart;
	}

	public void set_status(int _status) {
		this._status = _status;
	}

	public int get_status() {
		return _status;
	}

	public void set_timeBegin(String _timeBegin) {
		this._timeBegin = _timeBegin;
	}

	public String get_timeBegin() {
		return _timeBegin;
	}
}
